Skip to content

[3.13] gh-154582: Fix test_invalid_utf8_arg in non-UTF-8 multibyte locales (GH-154584)#154605

Merged
serhiy-storchaka merged 1 commit into
python:3.13from
serhiy-storchaka:backport-b1e530e-3.13
Jul 24, 2026
Merged

[3.13] gh-154582: Fix test_invalid_utf8_arg in non-UTF-8 multibyte locales (GH-154584)#154605
serhiy-storchaka merged 1 commit into
python:3.13from
serhiy-storchaka:backport-b1e530e-3.13

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Jul 24, 2026

Copy link
Copy Markdown
Member

(cherry picked from commit b1e530e)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com
Co-authored-by: Claude Opus 4.8 noreply@anthropic.com

…yte locales (pythonGH-154584)

Arbitrary bytes round-trip through surrogateescape only in UTF-8 and
single-byte encodings, not in a stateful multibyte encoding such as EUC-JP.
(cherry picked from commit b1e530e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
@bedevere-app bedevere-app Bot added the tests Tests in the Lib/test dir label Jul 24, 2026
@serhiy-storchaka
serhiy-storchaka enabled auto-merge (squash) July 24, 2026 12:32
@serhiy-storchaka
serhiy-storchaka merged commit 3871923 into python:3.13 Jul 24, 2026
42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant